package xyz.hzxiao.impl;

import org.apache.dubbo.config.annotation.DubboService;
import xyz.hzxiao.api.SayHelloApi;
import xyz.hzxiao.pojo.UserModel;

/**
 * sayHello实现类
 *
 * @author ：FuXx
 * @className : xyz.hzxiao.impl.SayHelloAplImpl
 * @since ：2023-05-12
 */
@DubboService
public class SayHelloAplImpl implements SayHelloApi {

    @Override
    public String sayHello(String name) {
        System.out.println("提供者========>");
        return "你好，".concat(name);
    }

    @Override
    public UserModel findUserByName(String userName) {
        UserModel model = new UserModel();
        model.setUserName(userName);
        model.setAge(22);
        return model;
    }
}
